﻿using BaseProject.Model.ViewModels;
using FluentValidation;

namespace BaseProject.Validators
{
    public class LoginVmValidator : AbstractValidator<LoginVM>
    {
        public LoginVmValidator()
        {
            RuleFor(s => s.Mobile).NotEmpty().WithMessage("手机号不能为空！");
            RuleFor(s => s.Password).NotEmpty().WithMessage("密码不能为空");
            //RuleFor(s => s.ValidationCode).NotEmpty().WithMessage("验证码不能为空");
        }
    }
}